package com.xzuf.datatransfer;

import java.io.Serializable;

public class ColumnVO implements Serializable 
{

    private String m_strColumnName;
    private String m_strColTypeName;
    private int m_intColType;
    private int m_intSize;
    private int m_intDigits;
    public boolean m_bIsPK;
    private boolean m_isAllowNull;

    public ColumnVO()
    {
        m_strColumnName = null;
        m_strColTypeName = null;
        m_bIsPK = false;
        m_isAllowNull = true;
    }

    public Object clone()
    {
        Object o = null;
        try
        {
            o = super.clone();
        }
        catch(Exception exception) { }
        ColumnVO vo = (ColumnVO)o;
        vo.setColType(getColType());
        vo.setColTypeName(getColTypeName());
        vo.setColumnName(getColumnName());
        vo.setDigits(getDigits());
        vo.setSize(getSize());
        vo.setIsPK(isPK());
        return vo;
    }

    public int getColType()
    {
        return m_intColType;
    }

    public String getColTypeName()
    {
        return m_strColTypeName;
    }

    public String getColumnName()
    {
        return m_strColumnName;
    }

    public int getDigits()
    {
        return m_intDigits;
    }

    public String getEntityName()
    {
        return "ColumnVO";
    }

    public int getSize()
    {
        return m_intSize;
    }

    public boolean isAllowNull()
    {
        return m_isAllowNull;
    }

    public boolean isPK()
    {
        return m_bIsPK;
    }

    public void setColType(int newColType)
    {
        m_intColType = newColType;
    }

    public void setColTypeName(String newColTypeName)
    {
        m_strColTypeName = newColTypeName;
    }

    public void setColumnName(String newColumnName)
    {
        m_strColumnName = newColumnName;
    }

    public void setDigits(int newDigits)
    {
        m_intDigits = newDigits;
    }

    public void setIsAllowNull(boolean isAllowNull)
    {
        m_isAllowNull = isAllowNull;
    }

    public void setIsPK(boolean isPK)
    {
        m_bIsPK = isPK;
    }

    public void setSize(int newSize)
    {
        m_intSize = newSize;
    }
}
